//
//  LogoutViewController.m
//  TMS
//
//  Created by Kalyani Chinchane on 2/4/15.
//  Copyright (c) 2015 Riddhi Joshi. All rights reserved.
//

#import "LogoutViewController.h"

@interface LogoutViewController ()
- (IBAction)logoutPressed:(id)sender;
- (IBAction)cancelPressed:(id)sender;

@end

@implementation LogoutViewController
- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

- (IBAction)logoutPressed:(id)sender
{
    NSString * storyboardName = @"Main";
    UIStoryboard *storyboard = [UIStoryboard storyboardWithName:storyboardName bundle: nil];
    UIViewController * vc = [storyboard instantiateViewControllerWithIdentifier:@"LoginViewController"];
    
    [self presentViewController:vc animated:YES completion:nil];

    
}

@end
